package ooday01;

//Student类的测试
public class StudentTest {
    public static void main(String[] args) {
        //创建一个学生对象
        Student zg = new Student();
        zg.name = "张光";
        zg.className = "jad202404";
        zg.age = 20;
        zg.id = "001";
        //调用方法：
        zg.study();
        zg.sayHi();
        zg.playWith("小明");

        System.out.println("----------------------");
        Student ll = new Student();
        ll.name = "李林";
        ll.age = 21;
        ll.className = "jsd202404";
        ll.id = "002";
        ll.study();
        ll.sayHi();
        ll.playWith("小白");
        System.out.println("------------------------");

        //直接调用方法：是默认值
        Student zl = new Student();
        zl.study();
        zl.sayHi();
        zl.playWith("光头强");






    }

}
